user = "magejiaoyu"
passwd = "magepython32"
i = 1
while True: # 可以试试用for循环代替while循环进行
    username = input("Enter your name:")
    password = input("Enter your password:")
    i += 1
    if username == user and password == passwd:
        print("Password verification is correct, welcome to login:")
        break
    elif i > 3:
        print("Error input more than 3 times, exit")
        break
    else:
        print("User or password input error, please re-enter")



